package cn.wanda.bi.sunshine.platform.server.client.response.elasticsearch;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by James on 17/7/13.
 */
@Data
public class UserLabelBean implements Serializable {

	private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "聚合对象")
    @JsonProperty("aggregations")
    private UserLabelAggregations aggregations;
	
    @ApiModelProperty(value = "执行这个搜索的耗时，以毫秒为单位")
    @JsonProperty("took")
    private Integer took;

    @ApiModelProperty(value = "搜索是否超时")
    @JsonProperty("time_out")
    private Boolean time_out;

    @ApiModelProperty(value = "指出多少个分片被搜索了，同时也指出了成功/失败的被搜索的shards的数量")
    @JsonProperty("_shards")
    private UserLabelShards _shards;

    @ApiModelProperty(value = "搜索结果")
    @JsonProperty("hits")
    private UserLabelHits hits;
    
    @ApiModelProperty(value = "错误代码")
    @JsonProperty("status")
    private Integer status;

    @ApiModelProperty(value = "错误信息")
    @JsonProperty("error")
    private String error;


}
